import request from '../utils/request'

// 加载商品数据
export const prodGet = async (pageSize=10,currentPage=1)=>{
    // 如果当前页码currentPage是3，skip需要跳过两页
    let skip = (currentPage-1)*pageSize
    let res = await request.get('/classes/Product',{
        params:{
            count:1,  //开启计数
            limit:pageSize,
            skip
        }
    })
    return res.data
}